home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / CRMSerialDevices.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  1.9 KB  |  89 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CRMSerialDevices.p
  3.  
  4.      Contains:    Communications Resource Manager Serial Device interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CRMSerialDevices;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CRMSERIALDEVICES__}
  30. {$SETC __CRMSERIALDEVICES__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CRMSerialDevicesIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. CONST
  47. {     for the crmDeviceType field of the CRMRec data structure    }
  48.     crmSerialDevice                = 1;
  49. {    version of the CRMSerialRecord below    }
  50.     curCRMSerRecVers            = 1;
  51.  
  52. { Maintains compatibility w/ apps & tools that expect an old style icon    }
  53.  
  54. TYPE
  55.     CRMIconRecord = RECORD
  56.         oldIcon:                ARRAY [0..31] OF LONGINT;                { ICN#    }
  57.         oldMask:                ARRAY [0..31] OF LONGINT;
  58.         theSuite:                Handle;                                    { Handle to an IconSuite    }
  59.         reserved:                LONGINT;
  60.     END;
  61.  
  62.     CRMIconPtr = ^CRMIconRecord;
  63.     CRMIconHandle = ^CRMIconPtr;
  64.  
  65.     CRMSerialRecord = RECORD
  66.         version:                INTEGER;
  67.         inputDriverName:        StringHandle;
  68.         outputDriverName:        StringHandle;
  69.         name:                    StringHandle;
  70.         deviceIcon:                CRMIconHandle;
  71.         ratedSpeed:                LONGINT;
  72.         maxSpeed:                LONGINT;
  73.         reserved:                LONGINT;
  74.     END;
  75.  
  76.     CRMSerialPtr = ^CRMSerialRecord;
  77.  
  78.  
  79. {$ALIGN RESET}
  80. {$POP}
  81.  
  82. {$SETC UsingIncludes := CRMSerialDevicesIncludes}
  83.  
  84. {$ENDC} {__CRMSERIALDEVICES__}
  85.  
  86. {$IFC NOT UsingIncludes}
  87.  END.
  88. {$ENDC}
  89.